package org.lanplay.server.model;

import javax.persistence.CascadeType;
import javax.persistence.ManyToOne;
import javax.persistence.MappedSuperclass;

import lombok.Data;
import lombok.EqualsAndHashCode;

@Data
@EqualsAndHashCode(callSuper=true)
@MappedSuperclass
public class UserGameReference extends BaseVersionedIdentifiable {
	private static final long serialVersionUID = 1L;

	@ManyToOne(cascade=CascadeType.DETACH)
	private User user;
	@ManyToOne(cascade=CascadeType.DETACH)
	private Game game;
}
